﻿<Window x:Class="Axiom.Hermetica.WPF.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        mc:Ignorable="d"  
        xmlns:local="clr-namespace:Axiom.Hermetica.WPF"        
        xmlns:views="clr-namespace:Axiom.Hermetica.WPF.Views"
        xmlns:mvvm="clr-namespace:Axiom.Hermetica.WPF.ViewModels"        
        xmlns:sampleData="clr-namespace:Axiom.Hermetica.WPF.SampleData"                
        d:DataContext="{Binding Source={StaticResource SampleData}}"
        Title="Service Manifold"
        Icon="/Axiom.Hermetica.WPF;component/Assets/Images/ViewThumbnail.png"   
		Loaded="OnLoaded"
        Style="{StaticResource MainWindowStyle}" Height="600" Width="1024">

	<Window.Resources>
		<ObjectDataProvider x:Key="Model" ObjectType="{x:Type mvvm:ViewModelLocator}" MethodName="GetMainViewModel"/>
		<sampleData:SampleData x:Key="SampleData"/>
		<BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
	</Window.Resources>

	<Window.CommandBindings>

	</Window.CommandBindings>
	<Window.DataContext>
		<Binding Source="{StaticResource Model}"/>
	</Window.DataContext>
	<Grid >
		<Grid.RowDefinitions>
			<RowDefinition Height="auto"/>
			<RowDefinition Height="*"/>
			<RowDefinition Height="auto"/>
		</Grid.RowDefinitions>
		<!--<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
			<Label Margin="5,0">
				<Hyperlink Click="OnCatalogue">
					<Hyperlink.Style>
						<Style TargetType="{x:Type Hyperlink}">
							<Setter Property="FontSize" Value="16"/>
							<Setter Property="TextDecorations" Value="None"/>
						</Style>
					</Hyperlink.Style>
					<Hyperlink.Inlines>
						<Run Text="CATALOG"/>
					</Hyperlink.Inlines>
				</Hyperlink>
			</Label>
			<Label Margin="5,0,60,0">
				<Hyperlink Click="OnLibrary">
					<Hyperlink.Style>
						<Style TargetType="{x:Type Hyperlink}">
							<Setter Property="FontSize" Value="16"/>
							<Setter Property="TextDecorations" Value="None"/>
						</Style>
					</Hyperlink.Style>
					<Hyperlink.Inlines>
						<Run Text="LIBRARY"/>
					</Hyperlink.Inlines>
				</Hyperlink>
			</Label>
		</StackPanel>-->
		<Frame Grid.Row="1" x:Name="frame" NavigationUIVisibility="Visible" Source="\Views\MainPage.xaml" Navigating="frame_Navigating" VerticalAlignment="Stretch">

		</Frame>
		<StatusBar Grid.Row="2" Height="18" Margin="0" Background="{StaticResource ControlBackground}" Grid.ColumnSpan="2">
			<StatusBar.Resources>
				<Style TargetType="TextBlock">
					<Setter Property="FontSize" Value="10"/>
				</Style>
			</StatusBar.Resources>
			<StatusBarItem Padding="0" HorizontalAlignment="Left" Margin="2,0,5,0">
				<ProgressBar IsIndeterminate="True" Width="100" Height="10" Visibility="{Binding IsBusy, Converter={StaticResource BooleanToVisibilityConverter}}" Foreground="Purple"/>
			</StatusBarItem>
			<StatusBarItem Padding="0" HorizontalAlignment="Left" Margin="2,0,0,0">
				<TextBlock Text="{Binding Status}"/>
			</StatusBarItem>
		</StatusBar>
	</Grid>
</Window>
